package com.zmn.oms.business.interfaces.member;

import com.zmn.oms.common.exception.OmsBaseException;
import com.zmn.oms.model.dto.member.OrderMemberMasterReviewDTO;
import com.zmn.oms.model.dto.member.OrderMemberPlatReviewDTO;
import com.zmn.oms.model.vo.member.OrderMemberPlatReviewVO;

/**
 * 类描述：会员单
 *
 * @author lujia
 * @date 2018/12/19 15:29
 */
public interface OrderMemberBService {

    /**
     * 保存平台审核
     *
     * @param platReviewDTO
     */
    boolean savePlatReview(OrderMemberPlatReviewDTO platReviewDTO) throws OmsBaseException;

    /**
     * 查询平台审核VO
     * @param orderId
     * @param workId
     * @return
     */
    OrderMemberPlatReviewVO findPlatReviewVO(Long orderId, Long workId) throws OmsBaseException;


    /**
     * 保存工程师审核
     *
     * @param mastertReviewDTO
     */
    boolean saveMasterReview(OrderMemberMasterReviewDTO mastertReviewDTO);

    /**
     * @descript :判断是延保订单,且全额使用了优惠券
     *
     */
    boolean verifyOrderMemberAndDiscount(Long orderId, Long workId);

}
